<%@taglib uri="/struts-tags" prefix = "s" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    	<%
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String sellOrBuy = request.getParameter("sellOrBuy");
 %>
<html>
<head>
	<style>
		table{
			margin-top: 40px;
			margin-left: 40px;
		}
		td{
			padding-left: 40px;

		}
		input{
			float:right;
		}
		select{
			margin-left: 22px;
		}

	</style>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>
</head>
<body>
	<form action="update_item_operate" method="POST" 
           >
		<table cellspacing="2" cellpadding="16"   >
				<tr>
				<td>
					物品的名称：
					<input type="text" name="item.name" value="<s:property value="item.name"/>">
					<br></td>
			</tr>
				<tr>
				<td>
					物品的数量：
					<input type="text" name="item.num" value="<s:property value="item.num"/>">
					<br></td>
			</tr>
			
			<tr>
				<td>
					物品新旧程度:
					<input type="text" name="item.old_new" size="20" value="<s:property value="item.old_new"/>" >
					<br></td>
			</tr>
		
			<tr>
				<td>
					物品租金单位：
					<select name="item.unit" id="" style="margin-left: -7px;" value="<s:property value="item.unit"/>">
						<option value="年"> 年</option>
						<option value="月">月</option>
						<option value="日">日</option>
						<option value="小时">小时</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>
					物品租金:
					<input type="text" name="item.price" value="<s:property value="item.price"/>">
					<br></td>
			</tr>
			<tr>
				<td>
					物品种类：
					<select name="item.classified" id="" value="<s:property value="item.classified"/>">
						<option value="笔记本">笔记本</option>
						<option value="电动车">电动车</option>
						<option value="其他">其他</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>
					物品颜色：
					<input type="text" name="item.color" value="<s:property value="item.color"/>"></td>
			</tr>
			
			<tr>
				<td>
					状态：&nbsp;&nbsp;&nbsp;
					<select name="item.state" id="" value="<s:property value="item.state"/>">
						<option value="待租">待租</option>
						<option value="在租">在租</option>
					</select>
				</td>
			</tr>
			<tr>
				
				
			</tr>
			   
			<tr>
				
				<td>
					<input type="submit"   value="提交">
				</td>
			</tr>
		</table>
		<input type="hidden" name="ownSellOrBuy" value="<s:property value="ownSellOrBuy"/>"/>
		<input type="hidden" name="item.item_id" value="<s:property value="item.item_id"/>"/>
	</form>

</body>
</html>